<div class="modal-header" id="scope">
	<h3 class="modal-title" ng-if="param.type == 'insert'">新增</h3>
	<h3 class="modal-title" ng-if="param.type == 'update'">修改</h3>
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>站点编号：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="站点编号" ng-model="param.data.stationNo"   ng-readonly="param.type=='update'" required/>
					</div>
					<p>唯一不可重复。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>助记码：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="助记码" ng-model="param.data.code" required/>
					</div>
					<p>必填</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>站点名称：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="站点名称" ng-model="param.data.name" required/>
					</div>
					<p>必填。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>区域码：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="区域码" ng-model="param.data.areaCode" required>
					</div>
					<p>必填。</p>
				</div>
			    <div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>省：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="省" ng-model="param.data.province"   required>
					</div>
					<p>必填。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>市：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="市" ng-model="param.data.city"  required>
					</div>
					<p>必填。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>区：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="区" ng-model="param.data.district" required>
					</div>
					<p>必填。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>站点地址：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="站点地址" ng-model="param.data.address" required>
					</div>
					<p>必填。</p>
				</div>
                <div class="form-group">
					<label class="col-sm-3 control-label">保险站点编号：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="站点地址" ng-model="param.data.insuranceNo" ng-pattern="/^\d{0,1}$/">
					</div>
					<p>选填，保险记账所使用的对应站点编号，一位数字。</p>
				</div>
				<div class="form-group">
				    <label class="col-sm-3 control-label">经纬度输入提示：</label>
				    <p class="col-sm-5" style="margin-top: 5px">经纬度查询网址：http://www.gpsspg.com/maps.htm 建议采用百度经纬度值。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>经度：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="经度" ng-model="param.data.longitude" ng-pattern="/^\d+(\.\d+)?$/" required>
					</div>
					<p>只能输入数字和小数点。例：114.333935</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>纬度：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="纬度" ng-model="param.data.latitude" ng-pattern="/^\d+(\.\d+)?$/" required>
					</div>
					<p>只能输入数字和小数点。例：30.541684</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>接口：</label>
					<div class="col-sm-5">
						<ui-select ng-model="apilist.selected" theme="bootstrap">
						<ui-select-match placeholder="接口">{{$select.selected.server}}</ui-select-match>
						<ui-select-choices
							repeat="api in apilist | propsFilter:{agency: $select.search}">
						<span ng-bind-html="api.server | highlight: $select.search"></span>
						</ui-select-choices> </ui-select>
					</div>
					<p>选择站点地区对应的订票接口服务器地址，必选。</p>
				</div>
            </div>
			<footer class="panel-footer text-right bg-light lter">
				<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
				<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
			</footer>
		</div>
	</form>
</div>